Fully Qualified Name: | Zend\Code\Generator\FileGenerator |
Extends: | AbstractGenerator |
Passes $options to {@link setOptions()}.
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns:
Parameter Name | Type | Description |
---|---|---|
$values | array |
Returns: \FileGenerator
Use this if you intend on generating code generation objects based on the same file.
This will keep previous changes to the file in tact during the same PHP process
Parameter Name | Type | Description |
---|---|---|
$filePath | string | |
$includeIfNotAlreadyIncluded | bool |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$fileReflection | \FileReflection |
Returns: \FileGenerator
Returns: string
Returns: string
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \ClassGenerator
Returns: \ClassGenerator[]
Returns: \DocBlockGenerator
Returns: string
Returns: string
Returns: string
Returns: array
Returns: string
Returns an array with the first element the use statement, second is the as part.
If $withResolvedAs is set to true, there will be a third element that is the "resolved" as statement, as the second part is not required in use statements
Parameter Name | Type | Description |
---|---|---|
$withResolvedAs | bool |
Returns: array
Returns: bool
Parameter Name | Type | Description |
---|---|---|
$body | string |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$class | array|string|\ClassGenerator |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$classes | array |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$docBlock | \DocBlockGenerator|array|string |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$filename | string |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$indentation | string |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$namespace | string |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$requiredFiles | array |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$sourceContent | string |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$isSourceDirty | bool |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$use | string | |
$as | null|string |
Returns: \FileGenerator
Parameter Name | Type | Description |
---|---|---|
$uses | array |
Returns: \FileGenerator
Returns: \FileGenerator